package com.ruoyi.canteen.controller.v1;

import com.ruoyi.canteen.domain.CanteenCb;
import com.ruoyi.canteen.service.ICanteenCbService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 餐别管理
 * @Author Ryan
 * @Date 2021/9/8 15:14
 * @Version 1.0
 */
@RestController
@RequestMapping("/v1/cb")
public class CbApiController extends BaseController {

    @Autowired
    private ICanteenCbService canteenCbService;

    /**
     * 查询餐别列表
     */
    @GetMapping("/list")
    public TableDataInfo list()
    {
        List<CanteenCb> list = canteenCbService.selectCanteenCbList(null);
        return getDataTable(list);
    }



}
